home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
014
/
pkxtra.arc
/
PKXTRACT.DOC
next >
Wrap
Text File
|
1988-01-13
|
10KB
|
266 lines
PKXTract.EXE Version 1.0 12 January 1988
Copyright (C) 1988 Chris Brown
This program is an enhancement to PKWARE's PKarc and PKXarc file
archiving programs. The purpose of this program is to provide an
easy way to select and extract files of different names and
extensions from ARC files in one easy step. This is especially
useful if you have a large ARC file and only want a few different
files or can't remember the name(s) of the file(s) that you do
want. It also provides a convenient way to view an ARC file.
As the program is written right now, it has to be run from a hard
disk. It looks for the file COMMAND.COM which is found on a hard
disk (well, most anyway) in the root directory of drive C: (C:\).
If it can't find it, your system may lock up (at worst) or the
program will simply stop running and give you a nasty error
message (99 times out of 100 anyway). Once it finds COMMAND.COM,
it uses the environment data that it passes. This means that
PKarc and PKXarc don't have to be in the same drive or directory
as you are, but it has to be in the path. It kind of has a fit
if it isn't. But who doesn't have their ARC programs in the path
anyway?
Another requirement is that there has to be free space on the
current logged drive\directory. The reason for this, is that the
program uses PKarc's V option, and I have DOS redirect the output
to a file called files.$$$. This is the slowest part of the
program, and if I knew how ARC files were structured, I would
bypass the whole process altogether. But for the moment, it is
how I have to get things done. The process can produce some
quite large files sometimes (12K for 145 arc file members). As I
haven't put in a check for a full disk (hoping to bypass the
process later) the program won't work right if the disk fills up
trying to create the reference file.
Command Line Syntax:
NOTE: Everything in brackets [] are optional parameters.
PKXtract [drive:][\directory\]Sourcefile[.ARC] [drive:][\directory]
Entering 'PKXtract ?' will give you this line also.
Examples:
PKXtract F:FILENAME.ARC
PKXtract F:\FILENAME
PKXtract F:\DWN-LDS\FILENAME.ARC
Assuming the Current logged drive\directory is D:\LOGGED, the
file FILENAME.ARC will be brought up on the screen and
selected files will be extracted to the current logged
drive\directory (D:\LOGGED).
PKXtract F:\FILENAME.ARC G:\TESTING
PKXtract F:FILENAME.ARC G:\TESTING\
PKXtract FILENAME.ARC G:\TESTING\
Extracted files will be sent to G:\TESTING assuming that it
exists.
1
PKXTract.EXE Version 1.0 12 January 1988
Copyright (C) 1988 Chris Brown
PKXtract F:\WHATEVER\PATHNAME\FILENAME.ARC G:
Extracted files will be sent to the current logged directory
of drive G: (Not necessarily the root directory). If the
current directory of drive G: is \TESTING, that is where the
files will go.
PKXtract F:FILENAME G:\
This will send the extracted files to the root directory of
drive G: regardless of the current logged directory of drive
G:.
Got the idea?
Although PKXtract doesn't check if the destination has enough
room on it (future version?) PKXarc will. Just watch for the
Disk Full warning. Also, I might write the program so that it
will create destination directories. "We'll see..."
Another check that PKXtract doesn't do is check for the length of
the command line that it sends to DOS and PKXarc. For that
reason, I have limited the amount of files that it sends to
PKXarc to 5 at a time. For instance, if you tag 9 files, it
sends 5 the first time, and on the second pass it sends the last
4. This may seem pretty small, but when you get source direct-
ories of say:
C:\BIN\NEW\OLD\TESTING\BETA\WHATEVER\I-FORGOT\FILENAME.ARC
and destination directories of:
A:\THIS\IS\JUST\TOO\MUCH
and on the top of that you get 5 files that can be up to 12
characters apiece (counting the space in between file specs),
well, you get what you deserve...
Once inside the program, you are presented with all of the files
and a hi-lited bar (right now the bar is red, but I might change
that before releasing this).
Movement commands:
Down Arrow:
This moves the hi-lited bar down one file name at a time. If you
are on the last entry, it will not wrap around to the top. I did
have it wrap around, but I didn't like it so I trapped it to the
last file. That might change again depending on requests.
Up Arrow:
This moves the hi-lited bar up one file at a time. For the same
reasons as the down arrow, it too will not wrap if you are on the
first file.
PgDn:
This is a dual function key because of the lack of space on the
screen for the description. First, if you are not on the last
2
PKXTract.EXE Version 1.0 12 January 1988
Copyright (C) 1988 Chris Brown
file of the screen, pressing PgDn once will put you there. If
you are at the bottom of the screen, it will bring up 23 new
files (if there are 23 files left to display) and leave the hi-
lited bar at the bottom of the screen (even if there weren't 23
more files to display). This too will not wrap around to the
top file.
PgUp:
This is the same as PgDn, except it takes you toward the Beginn-
ing of the files instead of the end. No wrap around here either!
Home, End:
These will take you to the beginning or the end of the listing.
File Commands:
T - Tag File:
Tags a file for extraction. When pressed, a solid greater-than
sign (>) appears next to the file. The tagged file count and
the Total Bytes Tagged count are incremented.
U - Untag File:
Untags a previously tagged file. Tagged Files and Total Bytes
Tagged are decremented.
Pressing the ALT key, brings up another menu:
Alt-T - Tag all Files:
Tags all files for extraction. It will also take you to the
bottom of the file. This might look like a slow process, but if
you look at the Tagged File and Bytes Tagged count, you will see
them steadily increase as each file is tagged. (If everyone is
in that much of a hurry, I can change that). This is the fastest
way to extract the files. If none of them get untagged, the
program just sends an "*.*" to PKXarc. This bypasses the 5 file
limit that I imposed on the program, and all files are extracted
on the first pass.
Alt-U - Untag all Files:
Untags all the files, resets all of the counters to zero, and
puts the hi-lite bar back at the begging of the listing.
Alt-E - Extract Tagged Files:
Shells out of PKXtract, and using PKXarc, extracts all of the
tagged files to the destination specified, or the current logged
drive\directory if no destination was specified.
Alt-X - Exit to DOS:
Terminates the program, and returns to DOS. Use this instead of
Cntrl-Break (^C) as this will ensure that you get a cursor back.
3
PKXTract.EXE Version 1.0 12 January 1988
Copyright (C) 1988 Chris Brown
This program was written in Turbo Pascal version 4.
If you find this program of use, and find your self using it
regularly, and would like to see enhancements made to it (I have
quite a few in mind), it would be greatly appreciated if you
would pay for it. I am only asking $10 for it, and for the time
and hastle it saves, I think that it is more than worth it.
Besides, it gives me the incentive to keep on writing programs
(for the public). By sending a disk and a mailer, you will also
receive the latest version of the program.
Send $10 to:
Chris Brown
427 14th St.
Edwards AFB, CA 93523-5000
Comments, bug reports and suggestions are more than welcome.
I can be reached by leaving mail on GEine also. My GEnie address
is: MAFMPD. (Don't ask me what it means!)
Remember, only you can make Shareware Work! Please, support it.
4